<?php
     include "connect.php";
//	 include "functions.php";
	    
   $badgedata = $_POST['badgedata'];
   $badgedata  = explode(',', $badgedata[0]);
   $driver_id =  $badgedata[1];

       	$result = mysqli_query($con, "UPDATE badge_id SET driver_id = '$driver_id' WHERE id = '1' ");
		
require_once(dirname(__FILE__) . "/pr_driverid.php");
		
?>
